import yagmail,pytest,logging
import yaml
def email(qq):
    gg=yagmail.SMTP(user='2314336117@qq.com',password='ixpbgkkezjwodhif',host='smtp.qq.com')
    gg.send(to='2314336117@qq.com',subject='rikao',contents='manfen',attachments=qq)

def log_set():
    logging.basicConfig(filename='rizi.txt',filemode='w+',format='%(funcName)s -> %(asctime)s -> %(message)s',level=logging.DEBUG)

def get_data_from_yaml(filepath):
    with open(filepath,'r',encoding='utf-8')as f:
        return yaml.safe_load(f)